<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no, email=no" />
    <title>供灯记录</title>
    <script type="text/javascript" src="{MODULE_URL}public/deng/js/flexible.js"></script>
    <script type="text/javascript" src="{MODULE_URL}public/deng/js/pageLoading.js"></script>
    <link rel="stylesheet" type="text/css" href="{MODULE_URL}public/deng/css/jilu.css" />
</head>
<body>
<section>
    <p class="daoshu">倒计时 <span id='countdown_time'></span> 即可再次供灯</p>
    <h1>目前连续供灯<span>1天</span></h1>
    <h3>温馨提示：佛堂供灯系统每天只能供灯一次</h3>
    <h5>Tina，您于</h5>
    <ul>
        <li><b>2016-09-24</b><i>09:56:43</i><span>供灯圆满</span></li>
    </ul>
</section>
<script type="text/javascript" src="{MODULE_URL}public/deng/js/zepto.min.js"></script>
<script>
    time();
    function time(){
        var now = new Date();//获取当前时间
        var hour=now.getHours();//获取当前时
        var minute=now.getMinutes();//获取当前分
        var second=now.getSeconds();//获取当前秒
        var curDate = hour*60*60*1000+minute*60*1000+second*1000;//获取当前时分秒
        var s = 24*60*60*1000 - curDate;  //24减去当前上香时间
        s=Math.floor(s/1000); //得到秒数
        s=s%(24*60*60);  //获得剩余秒数
        var h=Math.floor(s/(60*60));  //得到小时数
        s=s%(60*60);  //获得剩余秒数
        var mi=Math.floor(s/60);  //得到分钟数
        s=s%(60);  //获得剩余秒数..0
        
        document.getElementById("countdown_time").innerHTML=h+":"+mi+":"+s;
        setTimeout(time,1000);//1秒后，调用自己一次
    }
    $(function(){
        $(".nav>li").on('tap', function(e){
            e.stopPropagation();
            var index = $(this).index();
            $(this).addClass('on').siblings().removeClass('on');

        });
        $(".dropA").on('tap',function(){
            if (!$('.dropdown').hasClass('downOn')) {
                $('.dropdown').addClass('downOn');
            }else{
                $('.dropdown').removeClass('downOn');
            }
        })
        $(document).on('tap', function(e){
            var obj = e.target;
            if (!$(obj).is('.dropdown, .dropdown *')) {
                $('.dropdown').removeClass('downOn');
            }
        });
    })
</script>
<script type="text/javascript">
    window.shareData = {
        "imgUrl": "http://siweitape.com.cn/tpl/static/gongdeng/images/share_title.jpg",
        "timeLineLink": 'http://siweitape.com.cn/index.php?g=Wap&m=Gongdeng&a=index&token=yimjsw1467078121',
        "sendFriendLink":'http://siweitape.com.cn/index.php?g=Wap&m=Gongdeng&a=index&token=yimjsw1467078121',
        "tTitle": "供灯的功德很大很大！照世如灯，得大福报！",
        "tContent": "每天供灯一次，将具大福报，灭除大暗！",
        "fTitle": "供灯的功德很大很大！照世如灯，得大福报！",
        "fContent": "每天供灯一次，将具大福报，灭除大暗！",
    };
</script>

 {template 'baifocommon/nav'}
</body>
</html>